package com.uwo.house.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by yanhao on 2017/6/16.
 */
@Controller
@RequestMapping(value = "/manager")
public class ManagerController {

    @RequiresPermissions("manage:index")
    @RequestMapping(value = {"","/"})
    @ResponseBody
    public Object index(){
        return "index";
    }

    @RequiresPermissions("manage:init")
    @RequestMapping(value = "/init")
    @ResponseBody
    public Object init(){
        return "init";
    }

}
